//
//  UserModel.h
//  YezonghuiApp
//
//  Created by Sierra on 2017/7/19.
//  Copyright © 2017年 iFlytek. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    UserTypeNormalBusiness = 1,
    UserTypeDealer,
    UserTypePartner,
} UserType;

@interface UserModel : NSObject

/**
 *  用户ID
 */
@property (nonatomic, strong)  NSString                 *userId;
/**
 *  用户name
 */
@property (nonatomic, strong)  NSString                 *nickName;
/**
 *  性别 0 保密 1男 2女
 */
@property (nonatomic, assign)  NSInteger                sex;
/**
 *
 */
@property (nonatomic, strong)  NSString                 *phone;
/**
 *  registFrom
 */
@property (nonatomic, strong)  NSString                 *registFrom;
/**
 *  createTime
 */
@property (nonatomic, strong)  NSString                 *createTime;
/**
 *
 */
@property (nonatomic, strong)  NSString                 *creator;
/**
 *  headImg
 */
@property (nonatomic, strong)  NSString                *headImg;
@property (nonatomic, strong)  NSURL                *headImgURL;

/*是否设置支付密码*/
@property (nonatomic,strong) NSString *hadPassword;


#pragma --
#pragma -- 备注--- 微信登录
/**
 *  用户UID
 */
@property (nonatomic, strong)  NSString                 *uid;

@property (nonatomic, strong)  NSString                 *openId;
/**
 *  第三方ID
 */
@property (nonatomic, strong) NSString                 *unionid;
/**
 *  第三方toke
 */
@property (nonatomic, strong)  NSString                 *accessToken;
/**
 *  过期时间
 */
@property  (nonatomic, strong) NSString                 *expiry_in;

#pragma --
#pragma --  IM

@property  (nonatomic, strong) NSString                 *imVoipaccount;

@property  (nonatomic, strong) NSString                 *imVoippwd;

//不是 用户ID 哦，不要用错了
@property  (nonatomic, strong) NSString                 *id;

/**/
@property (nonatomic,strong) NSString *isCheck;

/**/
@property (nonatomic,strong) NSString *token;


///////////////////////////////////////11-29添加///////////////////////////////////////////////////////////////
/*身份证号 -- 用于重置支付密码时的身份证判断*/
@property (nonatomic,strong) NSString *bossCard;
@property (nonatomic,assign) UserType userType;

#pragma mark --
#pragma mark -- 乱写的 记的修改
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 *  login 状态
 */
@property (nonatomic, assign)  BOOL                     logined;

@property (nonatomic, assign)  BOOL                     backup;


@end
